package ldk.util.adapterjoinner.sample;

import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import ldk.util.adapterjoinner.R;

/**
 * Created by ldkxingzhe@163.com on 2017/6/6.
 */
public class TestAdapter extends RecyclerView.Adapter<TestAdapterViewHolder>{

    private int num;

    public TestAdapter(int _num){
        num = _num;
    }

    @Override
    public TestAdapterViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View rootView = LayoutInflater.from(parent.getContext()).inflate(R.layout.layout_text_view, parent, false);
        return new TestAdapterViewHolder(rootView);
    }

    @Override
    public void onBindViewHolder(TestAdapterViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return num;
    }
}
